package com.amose.config;

import java.io.InputStream;

/**
 * @author yangpeng
 * @time 2020/2/22
 * @since 1.0.0
 * 资源读取类
 */
public class Resource {

    /**
     * 将资源加载到内存中去
     * @param filePath
     * @return
     */
    public static InputStream getResourceAsStream(String filePath){
        return Resource.class.getClassLoader().getResourceAsStream(filePath);
    }
}
